package io.github.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
@TableName("area")
public class SysAreaEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 地区id
     */
    @TableId(type = IdType.AUTO)
    private Integer areaid;

    /**
     * 地区名称
     */
    @TableField
    private String name;

    /**
     * 父级ID
     */
    @TableField
    private Integer parentid;

}
